package com.westos.userauth.service;

import com.westos.userauth.domain.Party;
import com.westos.userauth.domain.PartyRelationship;
import com.westos.userauth.domain.PartyRole;
import com.westos.userauth.domain.RoleType;
import com.westos.userauth.dto.PartyRelationshipDTO;
import com.westos.userauth.dto.RoleDto;

import java.util.Date;

/**
 * 与角色相关的
 */
public interface RoleService {

    // 创建roletype
    boolean createRoleType(RoleType roletype);

    // 创建party的角色
    boolean createPartyRole(PartyRole partyRole);

    // 删除party的角色
    boolean deletePartyRole(String roleTypeId);

    //创建party之间的关系
    boolean createPartyRelationship(PartyRelationship partyRelationship,String relationshipName);//

    //修改party之间的关系
    boolean updatePartyRelationship(PartyRelationship partyRelationship);

    // 删除party的关系
    boolean deletePartyRelationship(PartyRelationshipDTO partyRelationshipDTO);

    // 创建party的关系和角色
    boolean createPartyRelationshipAndRole(RoleDto roleDto);

    //创建关系类型
    int createPartyRelationshipType(String  partyRelationshipTypeId);

    // 创建party的关系和角色
    int createUpdatePartyRelationshipAndRoles(RoleDto roleDto);


}
